<?
 class Online_users extends Widget
{
	function __construct()
	{
		parent::__construct();
	}
	
	private function defaults()
	{
		$config['name'] = 'Online users';
		$config['show_limit'] = 10;
		$config['hide_admin'] = FALSE;
		return $config;			
	}
    function run() 
	{
        $this->init_db('user_login', $this->defaults());
		$this->get_config('name');
		$this->get_config('show_limit');
		//$this->render('user_login');
    }
}  